﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class add_bomchange_stockstorecontent : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "UsableMatingQuantityStock",
                table: "StoreStocks",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<Guid>(
                name: "ModifiChangeId",
                table: "BomDesignDetails",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<Guid>(
                name: "ChangesAuditId",
                table: "BomChangeContents",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModuleId",
                table: "BomChangeContents",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<Guid>(
                name: "SendTimeId",
                table: "BomChangeContents",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "UsableMatingQuantityStock",
                table: "StoreStocks");

            migrationBuilder.DropColumn(
                name: "ModifiChangeId",
                table: "BomDesignDetails");

            migrationBuilder.DropColumn(
                name: "ChangesAuditId",
                table: "BomChangeContents");

            migrationBuilder.DropColumn(
                name: "ModuleId",
                table: "BomChangeContents");

            migrationBuilder.DropColumn(
                name: "SendTimeId",
                table: "BomChangeContents");
        }
    }
}
